<ul class="menu">
<?php
while($mn=mysql_fetch_array($menu))
{
	$link = BASE_URL.'/'.$mn['alias'].'.html';
	echo "<li class='item$mn[id]'><a href='$link'><span>$mn[name]</span></a></li>";
}
?>
</ul>